<script>
	
	
	export default {
		globalData: {
			city: {
				id: 1,
				name: '成都市'
			},
			citys: [{
				id: 1,
				name: '成都市'
			}],
			areas: [],
		},
		watch:{
			city:{
				handler(newCity,oldCity){
					console.log("新的城市");
					console.log(newCity);
				},
				immediate:true
			}
		},
		onLaunch: function() {
			uni.getStorage({
				key: 'city',
				success: (res) => {
					if (!res.data) {
						return;
					}
					this.globalData.city = res.data;
				},
				fail: (e) => {
					//this.toLogin(); 
				}
			});
		},
		onShow: function() {
			console.log('App Show')
		},
		onHide: function() {
			console.log('App Hide')
		},

	}
</script>

<style lang="scss">
	/*每个页面公共css */
	@import "colorui/main.css";
	@import "colorui/icon.css";
</style>

	